<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title><?php echo $title;?><?php echo $lang['group_main_quan'];?><?php echo $lang['group_topic_replythreads'];?></title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="js/pigzmo.js"></script>
<script language="javascript" type="text/javascript">
	window.onload=function (){
		pigzmo("subtitle","replaytitle",2,0);
	}
	function checkSubmit(){
	   if(document.form1.vdcode.value==""){
	   	    alert("<?php echo $lang['group_notice_10'];?>");
		    return false;
	   }
	}
</script>
</head>

<body>
<div id="container">
<?php
require_once(dirname(__FILE__)."/top.htm");
?>
  <div id="group_class_main">
    <?php
    require_once(dirname(__FILE__)."/left.htm");
    ?>
    <div id="group_class_right">    
	  <div class="group_class_forum" style="margin-top:0px;">      
        	<div class="group_class_forum_title bigfont"><?php echo $subjects;?></div>
          <div class="group_class_forum_text">
            <form name="form1" action="" method="post" onSubmit="return checkSubmit();">
            <input name="action" type="hidden" value="edit">
            <table width="100%" border="0" cellspacing="3" cellpadding="0">   
                   <?php if($first){ ?> <tr>
                      <td width="9%" height="30" align="right"><?php echo $lang['group_threads_titles'];?> </td>                      
                      <td width="91%" height="30">
                      <?php if(!empty($smalltype_array)){ ?>
                      <select name="types" id="types">
                        <option value="0"><?php echo $lang['group_threads_selectstore'];?></option>
                        <?php 
                      	$smalltypes_option = '';
                        foreach($smalltype_array as $rs) $smalltypes_option .= "<option value=\"".$rs['id']."\">".$rs['smalltypes']."</option>\n";
                        echo $smalltypes_option;
                        ?>
                      </select><?php }?><input name="subject" type="text" id="subject" style="height:18px;" value="<?php echo $subjects;?>" size="43" maxlength="70" /> <?php echo $lang['group_notice_11'];?>
                      </td>
                    	
                    </tr><?php } ?>      
                    <tr>
                      <td width="9%" height="30" align="right" valign="top"><?php echo $lang['group_main_texts'];?> </td>
                      <td width="91%">
                      <?php  GetEditor("threads","$message",260,"Member");?>
                      <br>
                      <?php echo $lang['group_notice_0'];?><?php echo $cfg_group_words;?><?php echo $lang['group_notice_18'];?><span style="color:red;"><?php echo $lang['group_notice_13'];?></span></td>
                    </tr>
                    <tr>
                      <td width="9%" height="30" align="right" valign="middle"><?php echo $lang['group_main_vdcodes'];?> </td>
                      <td width="91%" height="30"> <input name="vdcode" type="text" id="vdcode" style='height:18;width:50' size="13"> <img src='../include/vdimgck.php' width='50' height='20' align="absmiddle"> <?php echo $lang['group_notice_8'];?></td>
              </tr>
                    <tr>
                      <td width="9%" height="30" align="right" valign="top"></td>
                      <td width="91%">
                      <input type="submit" value="<?php echo $lang['group_main_submit'];?>" /> 
                      <?php echo $lang['group_main_or'];?> <a href="viewthread.php?id=<?php echo $id;?>&tid=<?php echo $tid;?>"><?php echo $lang['group_guestbook_return'];?></a>
                      </td>
                    </tr>
             </table>
            </form>
          </div>
      </div>
        </div>     
        <div class="clear">
        </div>        
    </div>
    <div class="clear">
    </div>
  </div>
<?php
require_once(dirname(__FILE__)."/line.htm");
?>
</div>
</body>
</html>